/**
 * Created by yuweimei on 2018/3/18.
 */

$(document).on('infinite', '.infinite-scroll', function () {

    var ele = document.getElementsByClassName('content')[0];

    var $scope = angular.element(ele).scope();
    console.log($scope.isOnloading);
    if ($scope.isOnloading) {
        return;
    }
    $scope.isOnloading = true;
    var page = ++$scope.page;
    console.log(page+'>>>');
    $scope.commentInfo(page);
});